@import './_mixin';
@import './_reset.scss';
@import './_ver';


.recommended_img {
    @include Type
}

.recommended {
    @include Type;

    >ul {
        width: 100%;
        height: 60px;
        background-color: white;
        display: flex;
        border-radius: 15px 15px 0 0;
        position: sticky;
        top: 40px;


        >li {
            width: 170px;
            box-sizing: border-box;
            padding: 10px;
            display: flex;
            flex-direction: column;
            cursor: pointer;

            >.title {
                margin-bottom: 5px;
            }

            >.shuoming {
                width: 70px;
                margin: 0 auto;
                border-radius: 5px;
            }

            >p {
                text-align: center;
                font-size: 14px;
            }

            &.active {
                >.title {
                    color: $font_hover;
                }

                >.shuoming {
                    background-color: $font_hover;
                }
            }
        }
    }

    >ol {
        @include Type;

        >li {
            box-sizing: border-box;
            padding: 10px;
            display: flex;
            flex-wrap: wrap;
            display: none;

            &.active {
                display: block;
            }



            >ul {
                display: flex;
                flex-wrap: wrap;


                >li {
                    width: 280px;
                    height: 405px;
                    margin: 5px;
                    background-color: white;
                    border-radius: 15px;
                    box-sizing: border-box;
                    padding: 5px;

                    >.goods_img {
                        width: 100%;
                        height: 300px;
                        margin-bottom: 5px;
                    }

                    >.jieshao {
                        font-size: 12px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        display: -webkit-box;
                        -webkit-line-clamp: 3;
                        -webkit-box-orient: vertical;

                    }

                    >.price {
                        display: flex;
                        margin-top: 10px;

                        >span {
                            display: inline-block;
                            font-size: 16px;
                            margin-right: 20px;
                        }

                        >.new {
                            font-size: 24px;
                            color: red;
                        }

                        >.old {
                            line-height: 33px;
                            text-decoration: line-through;
                        }

                    }

                    > *{
                        pointer-events: none;
                     }
                }
            }

        }
    }
    > .loading{
        @include Type;
        >img{
            display: block;
            margin: 0 auto;
            width: 200px;
            height: 200px;
        }
        display: none;

    }
}


.floor_nav {
   position: fixed;
    top: 50%;
    transform: rotateY(-50%);
    left:100px;
    display: none;
 > ul{
    width: 70px;
    height:120px;
    border: 1px solid white;
    border-bottom: none;

    >li{
        width: 68px;
        height: 40px;
        font-size: 12px;
        box-sizing: border-box;
        text-align: center;
        line-height: 40px;
        position: relative;
        cursor: pointer;

        >img{
        width: 42px;
        height: 42px;
        position: absolute;
        top: -30px;
        left: 10px;
    }

    &.active{
        background-color: orange;
    }
    }

    >.floor_first {
        text-align: center;
        line-height: 35px;
    }

 }
 > div{
    width: 68px;
    height: 40px;
    font-size: 12px;
    box-sizing: border-box;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    color: orange;
 }
}

.indexPage {
    @include Type;
    height: 600px;
    background-color: skyblue;
    font-size: 60px;
    @include CenTer;
}

